using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Wolfut.MirageEE.UI.UIBaseComponents
{
    public partial class MirageEEUserControlBase : DevExpress.XtraEditors.XtraUserControl
    {
        public object CurrentRow = null;
        public Int32 RowIndex = 0;
        //public Boolean Dirty = false;
        protected virtual MirageEEFormBase Owner
        {
            get
            {
                return (MirageEEFormBase)this.ParentForm;
            }
        }
        public MirageEEUserControlBase()
        {
            InitializeComponent();
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (!this.DesignMode)
            {
                this.BindGrid(true);
            }
        }

        protected virtual Boolean isValid()
        {
            return true;
        }
        protected virtual void BindGrid(Boolean IsDBLoading)
        {
            return;
        }
    }
}
